package com.bw.test_reflect_annotation;

import com.bw.test_reflect_annotation.annotation.Entity;
import com.bw.test_reflect_annotation.annotation.Field;
import com.bw.test_reflect_annotation.annotation.Id;

/**
 * @author ytx
 * @date 2025-10-31 09:28
 * @description
 */
@Entity("goods")
public class Goods {
    @Field(name = "id",type = "int",length = 10)
    @Id
    private int id;

    @Field(name = "name",type = "varchar",length = 20)
    private String name;

    @Field(name = "price",type = "double",length = 10)
    private double price;
}
